const columns = [
    {
        prop: 'user',
        label: '用户名',
        width: 120
    },
    {
        prop: 'name',
        label: '姓名',
        width: 120
    },
    {
        prop: 'numberId',
        label: '工号',
        width: 100
    },
    {
        prop: 'jobTitle',
        label: '岗位',
        width: 100
    },
    {
        prop: 'institution',
        label: '所属机构',
        width: 200
    },
    {
        prop: 'businessCountOfAssigned',
        label: '参与考试总数',
        width: 100
    },
    {
        prop: 'businessPassedPercent',
        label: '业务通过率',
        width: 100
    },
    {
        prop: 'maxTaskScore',
        label: '最高分',
        width: 100
    },
    {
        prop: 'minTaskScore',
        label: '最低分',
        width: 100
    },
    {
        label: '操作',
        width: 150,
        operations: [
            {
                prop: 'edit',
                label: '查看任务',
                icon: 'el-icon-view'
            }
        ]
    }
]

const traineeExcelColumns = [
    {
        prop: 'user',
        label: '用户名',
        width: 120
    },
    {
        prop: 'name',
        label: '姓名',
        width: 120
    },
    {
        prop: 'numberId',
        label: '工号',
        width: 100
    },
    {
        prop: 'jobTitle',
        label: '岗位',
        width: 100
    },
    {
        prop: 'institution',
        label: '所属机构',
        width: 200
    },
    {
        prop: 'businessCountOfAssigned',
        label: '参与考试总数',
        width: 100
    },
    {
        prop: 'businessPassedPercent',
        label: '业务通过率',
        width: 100
    },
    {
        prop: 'maxTaskScore',
        label: '最高分',
        width: 100
    },
    {
        prop: 'minTaskScore',
        label: '最低分',
        width: 100
    }
]

const taskColumns = [
    {
        prop: 'id',
        label: '任务编号',
        width: 80
    },
    {
        prop: 'name',
        label: '任务名称',
        width: 250
    },
    {
        prop: 'plainTime',
        label: '计划期限',
        width: 180
    },
    {
        prop: 'creatorName',
        label: '创建人',
        width: 100
    },
    {
        label: '操作',
        width: 140,
        operations: [
            {
                prop: 'edit',
                label: '学习详情'
            }
        ]
    }
]

const oTaskColumns = [
    {
        prop: 'id',
        label: '任务编号',
        width: 130
    },
    {
        prop: 'name',
        label: '任务名称',
        width: 250
    },
    {
        prop: 'plainTime',
        label: '计划期限',
        width: 220
    },
    {
        prop: 'creatorName',
        label: '创建人',
        width: 130
    }
]

const detailColumns = [
    {
        prop: 'name',
        label: '业务名称',
        width: 250
    },
    {
        prop: 'opStartTime',
        label: '操作时间',
        width: 150
    },
    {
        prop: 'opTimes',
        label: '操作次数',
        width: 100
    },
    {
        prop: 'score',
        label: '得分',
        width: 80
    },
    {
        prop: 'timeCost',
        label: '操作时长',
        width: 100
    },
    {
        prop: 'grade',
        label: '操作评级',
        width: 100
    },
    {
        label: '操作',
        width: 140,
        operations: [
            {
                prop: 'scoreDetail',
                label: '得分详情'
            }
        ]
    }
]

const oColumns = [
    {
        prop: 'organizationTitle',
        label: '机构名称',
        width: 310
    },
    {
        prop: 'employeesNumberOfAssigned',
        label: '学员总数',
        width: 240
    },
    {
        prop: 'taskCountOfAssigned',
        label: '考试次数',
        width: 240
    },
    {
        prop: 'organizationOfPassed',
        label: '考试通过率',
        width: 240
    },
    {
        label: '操作',
        width: 200,
        operations: [
            {
                prop: 'oEdit',
                label: '查看任务'
            }
        ]
    }
]
const digitalInput = [
    {
        prop: 'userName',
        label: '用户名'
    },
    {
        prop: 'employeeName',
        label: '姓名'
    },
    {
        prop: 'employNumber',
        label: '工号'
    },
    {
        prop: 'organizationName',
        label: '机构名称'
    },
    {
        prop: 'practiceNumber',
        label: '考试次数'
    },
    {
        prop: 'job',
        label: '岗位'
    },
    {
        prop: 'correctRate',
        label: '正确率（‰）'
    },
    {
        prop: 'averageSpeed',
        label: '平均速度（键/小时）',
        width: 200
    },
    {
        prop: 'averageSpendTime',
        label: '平均花费时长',
        width: 200
    },
    {
        prop: 'comprehensiveScore',
        label: '综合评分'
    }
]
const enableOptions = [
    {
        id: true,
        title: '是'
    },
    {
        id: false,
        title: '否'
    }
]

export default {
    columns,
    oColumns,
    taskColumns,
    oTaskColumns,
    detailColumns,
    traineeExcelColumns,
    enableOptions,
    digitalInput
}
